﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MemeberMain.Master" AutoEventWireup="true" CodeBehind="DonationHistory.aspx.cs" Inherits="outREACH.DonationHistory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
<div id="header-wrapper">
     
		<div id="header">
       
			<div id="menu">
            
				<ul>
					<li><a id="A1" href="~/HomeMem.aspx" runat="server">HOME</a></li>
					<li><a id="A2" href="~/Education/EducationMem.aspx" runat="server">EDUCATION</a></li>
					<li><a id="A3" href="~/Medical/MedicalMem.aspx" runat="server">MEDICAL</a></li>
					<li><a id="A4" href="~/Infrastructure/InfrastructureMem.aspx" runat="server">INFRA STRUCTURE</a></li>
					<li class="current_page_item"><a id="A5" href="~/Donation/DonationMem.aspx" runat="server">DONATION</a></li>
					<li><a id="A6" href="~/ContactUs_Mem.aspx" runat="server">CONTACT US</a></li>
				</ul>
               
			</div>
            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" Height="170px" 
                ImageUrl="~/Images/Untitled-2.png" Width="175px" 
                PostBackUrl="~/HomeMem.aspx" />
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel11" runat="server" Height="1030px" Font-Size="13pt" 
        ForeColor="Black">
        <asp:Label ID="trasactionsHistory" runat="server" Font-Bold="True" 
            Font-Italic="True" Font-Size="20pt" Text="Transactions History"></asp:Label>
        <br />
        <br />
        <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" align = "center"
            BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
            Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="160px" 
            ShowGridLines="True" Width="470px">
            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
            <OtherMonthDayStyle ForeColor="#CC9966" />
            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
            <SelectorStyle BackColor="#FFCC66" />
            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                ForeColor="#FFFFCC" />
            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
        </asp:Calendar>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:Button ID="Button4" runat="server" onclick="Button4_Click" 
            Text="Go to Selected Date" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button5" runat="server" onclick="Button5_Click" 
            Text="Show all History" />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" Height="135px" Width="540px" 
            AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
            align = "center" AllowPaging="True">
            <Columns>
                <asp:BoundField DataField="transactionID" HeaderText="Transaction ID" 
                    SortExpression="transactionID"></asp:BoundField>
                <asp:BoundField DataField="dateTime" HeaderText="Date &amp; Time" 
                    SortExpression="dateTime" />
                <asp:BoundField DataField="country" HeaderText="Country Donated To" 
                    SortExpression="country" />
                <asp:BoundField DataField="paymentType" HeaderText="Payment Type" 
                    SortExpression="paymentType" />
                <asp:BoundField DataField="amount" HeaderText="Amount (SGD$)" 
                    SortExpression="amount" />
            </Columns>
            <RowStyle HorizontalAlign="Center" />
        </asp:GridView>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource2" Visible="False" align = "center" 
            Width="540px" Height="135px" AllowPaging="True" HorizontalAlign="Center">
            <Columns>
                <asp:BoundField DataField="transactionID" HeaderText="Transaction ID" 
                    SortExpression="transactionID"></asp:BoundField>
                <asp:BoundField DataField="dateTime" HeaderText="Date &amp; Time" 
                    SortExpression="dateTime"></asp:BoundField>
                <asp:BoundField DataField="country" HeaderText="Country Donated To" 
                    SortExpression="country"></asp:BoundField>
                <asp:BoundField DataField="paymentType" HeaderText="Payment Type" 
                    SortExpression="paymentType"></asp:BoundField>
                <asp:BoundField DataField="amount" HeaderText="Amount (SGD$)" 
                    SortExpression="amount">
                </asp:BoundField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
        </asp:GridView>
        <br />
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="getFinHistoryDate" 
            TypeName="outREACH.App_Code.FinDonationHistory">
            <SelectParameters>
                <asp:SessionParameter Name="userName" SessionField="UserName" Type="String" />
                <asp:SessionParameter Name="date" SessionField="date" Type="DateTime" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="getFinHistory" TypeName="outREACH.App_Code.FinDonationHistory">
            <SelectParameters>
                <asp:SessionParameter Name="userName" SessionField="UserName" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
